
<div id="wrapper-content">
    <table class="titrepage" width="100%">
        <tr>
            <td >Ajouter promotion</td>
            <td align="right"> </td>
        </tr>
    </table>
<?php echo form_open_multipart('promotion/ajouter_promotion') ?>
    <table width="100%" class="list">
        
        <tr>
            <td width="30%" >Code:</td>
            <td><input type="text" name="code" size="30" value="<?php echo set_value('code')?>"/></td>
            <td><?php echo form_error('code'); ?></td>
        </tr>
        <tr>
            <td><label for="type">Type </label></td>
            <td>
                <select name="type">
                    <option value="1" <?php echo set_select('type', '1'); ?>>Pourcentage</option>
                    <option value="2" <?php echo set_select('type', '2'); ?>>Euro</option>
                </select>
            </td>
        </tr>
        <tr>
            <td width="30%" >Montant</td>
            <td><input type="text" name="pct" size="30" value="<?php echo set_value('pct')?>"/></td>
            <td><?php echo form_error('pct'); ?></td>
        </tr>
               <tr>
            <td><input type="submit" value="Ajouter" name ="submit"/> </td>
        </tr>
    </table>
<?php form_close();?>
</div>